// Optables and shit, included in the konami CPU class.
INLINE void adca_im();
INLINE void adca_ix();
INLINE void adcb_di();
INLINE void adcb_ex();
INLINE void adcb_im();
INLINE void adcb_ix();
INLINE void adda_di();
INLINE void adda_ex();
INLINE void adda_im();
INLINE void adda_ix();
INLINE void addb_di();
INLINE void addb_ex();
INLINE void addb_im();
INLINE void addb_ix();
INLINE void addd_di();
INLINE void addd_ex();
INLINE void addd_im();
INLINE void addd_ix();
INLINE void anda_di();
INLINE void anda_ex();
INLINE void anda_im();
INLINE void anda_ix();
INLINE void andb_di();
INLINE void andb_ex();
INLINE void andb_im();
INLINE void andb_ix();
INLINE void andcc();
INLINE void asl_di();
INLINE void asl_ex();
INLINE void asl_ix();
INLINE void asla();
INLINE void aslb();
INLINE void asr_di();
INLINE void asr_ex();
INLINE void asr_ix();
INLINE void asra();
INLINE void asrb();
INLINE void bcc();
INLINE void bcs();
INLINE void beq();
INLINE void bge();
INLINE void bgt();
INLINE void bhi();
INLINE void bita_di();
INLINE void bita_ex();
INLINE void bita_im();
INLINE void bita_ix();
INLINE void bitb_di();
INLINE void bitb_ex();
INLINE void bitb_im();
INLINE void bitb_ix();
INLINE void ble();
INLINE void bls();
INLINE void blt();
INLINE void bmi();
INLINE void bne();
INLINE void bpl();
INLINE void bra();
INLINE void brn();
INLINE void bsr();
INLINE void bvc();
INLINE void bvs();
INLINE void clr_di();
INLINE void clr_ex();
INLINE void clr_ix();
INLINE void clra();
INLINE void clrb();
INLINE void cmpa_di();
INLINE void cmpa_ex();
INLINE void cmpa_im();
INLINE void cmpa_ix();
INLINE void cmpb_di();
INLINE void cmpb_ex();
INLINE void cmpb_im();
INLINE void cmpb_ix();
INLINE void cmpd_di();
INLINE void cmpd_ex();
INLINE void cmpd_im();
INLINE void cmpd_ix();
INLINE void cmps_di();
INLINE void cmps_ex();
INLINE void cmps_im();
INLINE void cmps_ix();
INLINE void cmpu_di();
INLINE void cmpu_ex();
INLINE void cmpu_im();
INLINE void cmpu_ix();
INLINE void cmpx_di();
INLINE void cmpx_ex();
INLINE void cmpx_im();
INLINE void cmpx_ix();
INLINE void cmpy_di();
INLINE void cmpy_ex();
INLINE void cmpy_im();
INLINE void cmpy_ix();
INLINE void com_di();
INLINE void com_ex();
INLINE void com_ix();
INLINE void coma();
INLINE void comb();
INLINE void cwai();
INLINE void daa();
INLINE void dec_di();
INLINE void dec_ex();
INLINE void dec_ix();
INLINE void deca();
INLINE void decb();
INLINE void eora_di();
INLINE void eora_ex();
INLINE void eora_im();
INLINE void eora_ix();
INLINE void eorb_di();
INLINE void eorb_ex();
INLINE void eorb_im();
INLINE void eorb_ix();
INLINE void exg();
INLINE void illegal();
INLINE void inc_di();
INLINE void inc_ex();
INLINE void inc_ix();
INLINE void inca();
INLINE void incb();
INLINE void jmp_di();
INLINE void jmp_ex();
INLINE void jmp_ix();
INLINE void jsr_di();
INLINE void jsr_ex();
INLINE void jsr_ix();
INLINE void lbcc();
INLINE void lbcs();
INLINE void lbeq();
INLINE void lbge();
INLINE void lbgt();
INLINE void lbhi();
INLINE void lble();
INLINE void lbls();
INLINE void lblt();
INLINE void lbmi();
INLINE void lbne();
INLINE void lbpl();
INLINE void lbra();
INLINE void lbrn();
INLINE void lbsr();
INLINE void lbvc();
INLINE void lbvs();
INLINE void lda_di();
INLINE void lda_ex();
INLINE void lda_im();
INLINE void lda_ix();
INLINE void ldb_di();
INLINE void ldb_ex();
INLINE void ldb_im();
INLINE void ldb_ix();
INLINE void ldd_di();
INLINE void ldd_ex();
INLINE void ldd_im();
INLINE void ldd_ix();
INLINE void lds_di();
INLINE void lds_ex();
INLINE void lds_im();
INLINE void lds_ix();
INLINE void ldu_di();
INLINE void ldu_ex();
INLINE void ldu_im();
INLINE void ldu_ix();
INLINE void ldx_di();
INLINE void ldx_ex();
INLINE void ldx_im();
INLINE void ldx_ix();
INLINE void ldy_di();
INLINE void ldy_ex();
INLINE void ldy_im();
INLINE void ldy_ix();
INLINE void leas();
INLINE void leau();
INLINE void leax();
INLINE void leay();
INLINE void lsr_di();
INLINE void lsr_ex();
INLINE void lsr_ix();
INLINE void lsra();
INLINE void lsrb();
INLINE void mul();
INLINE void neg_di();
INLINE void neg_ex();
INLINE void neg_ix();
INLINE void nega();
INLINE void negb();
INLINE void nop();
INLINE void ora_di();
INLINE void ora_ex();
INLINE void ora_im();
INLINE void ora_ix();
INLINE void orb_di();
INLINE void orb_ex();
INLINE void orb_im();
INLINE void orb_ix();
INLINE void orcc();
INLINE void pshs();
INLINE void pshu();
INLINE void puls();
INLINE void pulu();
INLINE void rol_di();
INLINE void rol_ex();
INLINE void rol_ix();
INLINE void rola();
INLINE void rolb();
INLINE void ror_di();
INLINE void ror_ex();
INLINE void ror_ix();
INLINE void rora();
INLINE void rorb();
INLINE void rti();
INLINE void rts();
INLINE void sbca_di();
INLINE void sbca_ex();
INLINE void sbca_im();
INLINE void sbca_ix();
INLINE void sbcb_di();
INLINE void sbcb_ex();
INLINE void sbcb_im();
INLINE void sbcb_ix();
INLINE void sex();
INLINE void sta_di();
INLINE void sta_ex();
INLINE void sta_im();
INLINE void sta_ix();
INLINE void stb_di();
INLINE void stb_ex();
INLINE void stb_im();
INLINE void stb_ix();
INLINE void std_di();
INLINE void std_ex();
INLINE void std_im();
INLINE void std_ix();
INLINE void sts_di();
INLINE void sts_ex();
INLINE void sts_im();
INLINE void sts_ix();
INLINE void stu_di();
INLINE void stu_ex();
INLINE void stu_im();
INLINE void stu_ix();
INLINE void stx_di();
INLINE void stx_ex();
INLINE void stx_im();
INLINE void stx_ix();
INLINE void sty_di();
INLINE void sty_ex();
INLINE void sty_im();
INLINE void sty_ix();
INLINE void suba_di();
INLINE void suba_ex();
INLINE void suba_im();
INLINE void suba_ix();
INLINE void subb_di();
INLINE void subb_ex();
INLINE void subb_im();
INLINE void subb_ix();
INLINE void subd_di();
INLINE void subd_ex();
INLINE void subd_im();
INLINE void subd_ix();
INLINE void swi();
INLINE void swi2();
INLINE void swi3();
INLINE void sync();
INLINE void tfr();
INLINE void tst_di();
INLINE void tst_ex();
INLINE void tst_ix();
INLINE void tsta();
INLINE void tstb();

INLINE void clrd(); /* 6309 */
INLINE void clrw_ix(); /* 6309 ? */
INLINE void clrw_di(); /* 6309 ? */
INLINE void clrw_ex(); /* 6309 ? */
INLINE void negd();
INLINE void negw_ix(); /* 6309 ? */
INLINE void negw_di(); /* 6309 ? */
INLINE void negw_ex(); /* 6309 ? */
INLINE void lsrd(); /* 6309 */
INLINE void lsrd_di(); /* 6309 */
INLINE void lsrd_ix(); /* 6309 */
INLINE void lsrd_ex(); /* 6309 */
INLINE void rord(); /* 6309 ? */
INLINE void rord_di(); /* 6309 */
INLINE void rord_ix(); /* 6309 */
INLINE void rord_ex(); /* 6309 */
INLINE void asrd(); /* 6309 ? */
INLINE void asrd_di(); /* 6309 */
INLINE void asrd_ix(); /* 6309 */
INLINE void asrd_ex(); /* 6309 */
INLINE void asld(); /* 6309 */
INLINE void asld_di(); /* 6309 */
INLINE void asld_ix(); /* 6309 */
INLINE void asld_ex(); /* 6309 */
INLINE void rold(); /* 6309 ? */
INLINE void rold_di(); /* 6309 */
INLINE void rold_ix(); /* 6309 */
INLINE void rold_ex(); /* 6309 */
INLINE void tstd();
INLINE void tstw_di();
INLINE void tstw_ix();
INLINE void tstw_ex();

/* Custom opcodes */
INLINE void setline_im();
INLINE void setline_ix();
INLINE void setline_di();
INLINE void setline_ex();
INLINE void bmove();
INLINE void move();
INLINE void decbjnz();
INLINE void decxjnz();
INLINE void bset();
INLINE void bset2();
INLINE void lmul();
INLINE void divx();
INLINE void incd();
INLINE void incw_di();
INLINE void incw_ix();
INLINE void incw_ex();
INLINE void decd();
INLINE void decw_di();
INLINE void decw_ix();
INLINE void decw_ex();
INLINE void lsrw_di();
INLINE void lsrw_ix();
INLINE void lsrw_ex();
INLINE void rorw_di();
INLINE void rorw_ix();
INLINE void rorw_ex();
INLINE void asrw_di();
INLINE void asrw_ix();
INLINE void asrw_ex();
INLINE void aslw_di();
INLINE void aslw_ix();
INLINE void aslw_ex();
INLINE void rolw_di();
INLINE void rolw_ix();
INLINE void rolw_ex();
INLINE void absa();
INLINE void absb();
INLINE void absd();

INLINE void opcode2();

// included in the tables but not here
INLINE void abx();
INLINE void adca_di();
INLINE void adca_ex();